#include <assimp/scene.h>
#include <assimp/Importer.hpp>
#include <glm/glm.hpp>
#include <reactphysics3d/reactphysics3d.h>
#include <GLFW/glfw3.h>
#include <yaml-cpp/yaml.h>
#include <entt/entt.hpp>

#define STB_IMAGE_IMPLEMATION
#include <stb/stb_image.h>

#include "pch.h"

namespace rp3d=reactphysics3d;

int main(int argc ,char * argv[])
{

    YAML::Node node;
    node["name"]="fbz";
    node["password"]="1234567";
    

    YAML::Emitter emitter;
    emitter<<node;


    std::ofstream ofs("node");
    
    ofs<<emitter.c_str();
    ofs.flush();
    ofs.close();

    entt::registry m_rg;
    m_rg.create();
    
    rp3d::PhysicsCommon pycommon;
    rp3d::PhysicsWorld* world=pycommon.createPhysicsWorld();


    pycommon.destroyPhysicsWorld(world);

    glfwInit();

    Assimp::Importer importer;
    const aiScene* scene=importer.ReadFile("1.fbx",1);
    if(scene==nullptr)
    {
        LOGI("cannot find package");
    }
    
    importer.FreeScene();


}